package nc.bs.pf.changedir;

import nc.bs.logging.Log;
import nc.bs.pf.change.VOConversion;
import nc.vo.pf.change.UserDefineFunction;

public class CHGZ5TOF1 extends VOConversion {
  public String getAfterClassName() {
    return "nc.vo.arap.change.VoChangeNBJY";
  }
  
  public String getOtherClassName() {
    return null;
  }
  
  public String[] getField() {
    return new String[] { 
        "H_xslxbm->DESTBUSITYPE", "H_effectdate->SYSDATE", "H_djlxbm->DESTBILLTYPE", "H_lrr->SYSOPERATOR", "H_djrq->SYSDATE", "B_deptid->H_depid", "B_ywybm->H_personnelid", "B_jobid->H_projectid", "B_bzbm->H_currid", "B_ddhh->B_pk_ct_manage_b", 
        "B_ddlx->H_pk_ct_manage", "B_sl->B_taxration", "B_dj->B_oriprice", "B_contractno->H_ct_code", "B_sfkxyh->H_payterm", "B_dfybje->B_oritaxsummny", "B_dfybwsje->B_orisum", "B_dfybsj->B_oritaxmny", "B_dfbbje->B_natitaxsummny", "B_dfbbwsje->B_natisum", 
        "B_dfbbsj->B_natitaxmny", "B_dffbje->B_asttaxsummny", "B_wbffbje->B_astsum", "B_dffbsj->B_asttaxmny", "B_fbhl->H_astcurrate", "B_bbhl->H_currrate", "H_dwbm->H_pk_corp", "B_cksqsh->B_pk_ct_manage_b", "B_xyzh->B_pk_ct_manage", "B_hsdj->B_oritaxprice" };
  }
  
  public String[] getFormulas() {
    return new String[] { 
        "B_jobid->getColValue(bd_jobmngfil,pk_jobbasfil,pk_jobmngfil,H_projectid)", "B_hbbm->getColValue(bd_cumandoc,pk_cubasdoc,pk_cumandoc,H_custid)", "H_lybz->20", "H_comment->\"\"", "H_djkjnd->getKJND(SYSDATE)", "H_djkjqj->getKJQJ(SYSDATE )", "H_djdl->\"yf\"", "H_pzglh->1", "H_ywbm->getdjlx( H_dwbm , H_djlxbm)", "H_qcbz->\"N\"", 
        "H_prepay->\"N\"", "B_old_sys_flag->\"N\"", "B_wldx->1", "B_fx->-1", "B_old_flag->\"N\"", "B_ph->\"Z5\"", "B_jsfsbm->\"Z5\"", "B_cinventoryid->getColValue(bd_invmandoc,pk_invbasdoc,pk_invmandoc,B_invid)", "H_isselectedpay->1" };
  }
  
  public UserDefineFunction[] getUserDefineFunction() {
    try {
      UserDefineFunction func0 = new UserDefineFunction();
      func0.setClassName("nc.bs.arap.change.PubchangeBO");
      func0.setMethodName("getKJND");
      func0.setReturnType(Class.forName("java.lang.String"));
      func0.setArgTypes(new Class[] { Class.forName("java.lang.String") });
      func0.setArgNames(new String[] { "&newdate" });
      UserDefineFunction func1 = new UserDefineFunction();
      func1.setClassName("nc.bs.arap.change.PubchangeBO");
      func1.setMethodName("getKJQJ");
      func1.setReturnType(Class.forName("java.lang.String"));
      func1.setArgTypes(new Class[] { Class.forName("java.lang.String") });
      func1.setArgNames(new String[] { "&d1" });
      UserDefineFunction func2 = new UserDefineFunction();
      func2.setClassName("nc.bs.arap.change.PubchangeBO");
      func2.setMethodName("getdjlx");
      func2.setReturnType(Class.forName("java.lang.String"));
      func2.setArgTypes(new Class[] { Class.forName("java.lang.String"), Class.forName("java.lang.String") });
      func2.setArgNames(new String[] { "&corp", "&djlxbm" });
      UserDefineFunction[] allFuncs = new UserDefineFunction[3];
      allFuncs[0] = func0;
      allFuncs[1] = func1;
      allFuncs[2] = func2;
      return allFuncs;
    } catch (ClassNotFoundException e) {
      Log.getInstance(getClass()).error(e.getMessage());
      return null;
    } 
  }
}
